package com.mission.schedule.service;

import android.annotation.SuppressLint;
import android.app.Service;
import android.appwidget.AppWidgetManager;
import android.content.Intent;
import android.os.Binder;
import android.os.Bundle;
import android.os.Handler;
import android.os.IBinder;
import android.os.Message;
import android.text.TextUtils;
import android.util.Log;

import com.android.volley.AuthFailureError;
import com.android.volley.DefaultRetryPolicy;
import com.android.volley.Request;
import com.android.volley.Request.Method;
import com.android.volley.Response;
import com.android.volley.Response.Listener;
import com.android.volley.VolleyError;
import com.android.volley.toolbox.StringRequest;
import com.google.gson.Gson;
import com.google.gson.JsonSyntaxException;
import com.mission.schedule.add603.bean.UpNew;
import com.mission.schedule.applcation.App;
import com.mission.schedule.appwidget.WidgetA;
import com.mission.schedule.bean.DownLoadBackBean;
import com.mission.schedule.bean.DownLoadBean;
import com.mission.schedule.bean.DownLoadRepeatBackBean;
import com.mission.schedule.bean.DownLoadRepeatBean;
import com.mission.schedule.bean.RepeatBean;
import com.mission.schedule.bean.RepeatUpAndDownBean;
import com.mission.schedule.bean.RepeatUpLoadBackBean;
import com.mission.schedule.bean.RepeatUpLoadBean;
import com.mission.schedule.bean.ScheduBean;
import com.mission.schedule.bean.UpLoadBackBean;
import com.mission.schedule.bean.UpLoadBean;
import com.mission.schedule.bean.qd606.CLInventoryBean;
import com.mission.schedule.bean.qd606.CLInventoryDeListBean;
import com.mission.schedule.bean.qd606.CLInventoryListBean;
import com.mission.schedule.clock.QueryAlarmData;
import com.mission.schedule.constants.Const;
import com.mission.schedule.constants.ShareFile;
import com.mission.schedule.constants.URLConstants;
import com.mission.schedule.entity.CLRepeatTable;
import com.mission.schedule.entity.ScheduleTable;
import com.mission.schedule.fragment.MyScheduleFragment;
import com.mission.schedule.my160920.bean.FriendBackBean;
import com.mission.schedule.my160920.bean.FriendBean;
import com.mission.schedule.my160920.bean.FriendDeleteScheduleBean;
import com.mission.schedule.my160920.bean.FriendDownAllScheduleBean;
import com.mission.schedule.my160920.bean.FriendDownBackBean;
import com.mission.schedule.utils.CalendarChangeValue;
import com.mission.schedule.utils.DateUtil;
import com.mission.schedule.utils.RepeatDateUtils;
import com.mission.schedule.utils.SharedPrefUtil;
import com.mission.schedule.utils.StringUtils;
import com.mission.schedule.utils.XmlUtil;

import org.json.JSONArray;
import org.json.JSONObject;

import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 同步上传日程数据和重复数据
 */
public class UpLoadService extends Service {

    public static final String RepUPDATADATA = "repUpdateData";

    App application = App.getDBcApplication();
    String downPath;
    SharedPrefUtil sharedPrefUtil = null;
    String befortime;
    String UserId = "";
    String schyear;
    String schtime;
    String repyear;
    String reptime;
    List<Map<String, String>> upList;
    List<Map<String, String>> upRepeatList;
    int index;
    CalendarChangeValue changeValue = new CalendarChangeValue();
    List<Map<String, String>> soundlist = new ArrayList<Map<String, String>>();
    //    String downreppath = "";
//    String downschpath = "";
    String schuppath = "";
    String schjson = "";
    String repeatUpPath = "";
    String repJson = "";
    private int IsRepeat = 0;

    String uname = "";

    String constflag = "";

    @Override
    public IBinder onBind(Intent intent) {
        return null;
    }

    @Override
    public void onCreate() {
        super.onCreate();
    }

    @Override
    public void onStart(final Intent intent, int startId) {
        super.onStart(intent, startId);
    }


}
